Documentation
Users browsing this thread: shygoo

Edit | Delete | Reply | Report | Link
I'm bored with sm64 at the moment so



RAM Functions -------------------------

HUD fraction pair: 800E7E34 (a0 = ?, a1 = x_left, a2 = y_top, a3 = numerator, v0 = denominator)
HUD image:         800F52E0 (a0 = ?, a1 = gfx id, a2 = x_left, a3 = y_top, 0x14(sp) = width, 0x18(sp) = height, 0x..(sp) = ...)
HUD 16x16 image:   801447C4 (a0 = id) Ex calls @ 800E8894
Update coins:      800E99F4 ()
DMA copy:          8005F490 (A0 = rom address, A1 = ram address, a2 = size)
Yay0 decompress:   8006EDF0 (A0 = ram pointer to yay0 header, A1 = destination address)

RAM Heap ------ (# -> int of # size, s -> struct, f -> float, f3 -> float triplet, p -> pointer)

8009A604[2] object count

8010EFC8[S] Mario?
8010EFD0[2]  Frame counter
8010EFF0[F3] Mario coordinates
8010F01C[F]  Current xz speed?
8010F024[F]  Speed multiplier
8010F024[F]  Current xz speed 2?
8010F048[F]  Direction

8010F183[1] Frame something (1-9)
8010F292[1] HP
8010F293[1] HP limit
8010F294[1] ?
8010F295[1] FP
8010F296[1] FP Limit
8010F297[1] ?
8010F298[4] ?
8010F29C[2] Coins
8010F29E[2] ?
8010F2A0[1] Star points

Object struct table, reference list @ 800A0990 (structs 0xB8 bytes each?, allocated 0x560 bytes apart?):
00 [4?] (setting last byte to F% makes object upside down)
04 [P]  ASM func 1
08 [P]  ASM func 2
0C [F]  ?
18 [F]  Path speed
24 [1?] Sprites id
28 [4?] Animation id
30 [F]  Animation speed
38 [F3] XYZ Coordinates
50 [F]  ?
54 [F3] Dimensions

802D9D80 possible debug menu elements

Text encoding ------------------------------------------------------------------------------------------
________________________________________________________________________________________________________
|A  |B  |C  |D  |E  |F  |G  |H  |I  |J  |K  |L  |M  |N  |O  |P  |Q  |R  |S  |T  |U  |V  |W  |X  |Y  |Z |
|21 |22 |23 |24 |25 |26 |27 |28 |29 |2A |2B |2C |2D |2E |2F |30 |31 |32 |33 |34 |35 |36 |37 |38 |39 |3A|
+------------------------------------------------------------------------------------------------------+
|a  |b  |c  |d  |e  |f  |g  |h  |i  |j  |k  |l  |m  |n  |o  |p  |q  |r  |s  |t  |u  |v  |w  |x  |y  |z |
|41 |42 |43 |44 |45 |46 |47 |48 |49 |4A |4B |4C |4D |4E |4F |50 |51 |52 |53 |54 |55 |56 |57 |58 |59 |5A|
--------------------------------------------------------------------------------------------------------
FF 29 9F = [text start]
FD = [text end]
0E = .
F7 = [space]

Docs:
ROM Yay0 locations dump
(This post was last modified: February 7th, 2015, 01:49 am by shygoo.)

Edit | Delete | Reply | Report | Link
Here are a couple of useful documents.
double_damage.txt is the code for Paper Mario Hard/Insane Mode.


Attached Files
Size: 1,013 bytes / Downloads: 142 .txt   double_damage.txt

Size: 6.89 KB / Downloads: 392 .txt   Text tables.txt


Documentation
Users browsing this thread: shygoo

Quick Reply




Inline Post Moderation:  

Moderation Options:


Loading...
  EN ・日本語 
Expand chat